package com.qen.fx.tools;

import javafx.scene.control.Alert;

public class AlertTool {

    public static void showAlert(String title, String header, String content, Alert.AlertType type) {
        Alert alert = new Alert(Alert.AlertType.NONE);
        alert.setAlertType(type);
        alert.setContentText(content);
        alert.setHeaderText(header);
        alert.setTitle(title);
        alert.show();
    }

    public static void showAlert(String content) {
        showAlert(null, null, content, Alert.AlertType.INFORMATION);
    }

}
